using NUnit.Framework;

namespace Shuttle.Esb.Tests
{
    [TestFixture]
    public class SharedServiceBusSection : ServiceBusSectionFixture
    {
        [Test]
        [TestCase("Shared.config")]
        [TestCase("Shared-Grouped.config")]
        public void Should_be_able_to_load_shared_configuration(string file)
        {
            var section = GetServiceBusSection(file);

            Assert.IsNotNull(section);

            Assert.IsTrue(section.RemoveMessagesNotHandled);
            Assert.IsTrue(section.RemoveCorruptMessages);
            Assert.AreEqual("GZip", section.CompressionAlgorithm);
            Assert.AreEqual("3DES", section.EncryptionAlgorithm);
        }
    }
}